A code that slices a string, please click the below button
Click me